#ifndef EXAM_H
#define EXAM_H
#include <QDate>
#include <QString>
#include <QDataStream>

using namespace std;

class Exam
{
public:
    Exam();
    Exam(int number, QDate date);
    int getNumber() const;
    QDate getDate() const;
    void setNumber(int number);
    void setDate(QDate date);

private:
    int number;
    QDate date;
};


QDataStream &operator<<(QDataStream &out, const Exam &data);
QDataStream &operator>>(QDataStream &in, Exam &data);

#endif // EXAM_H
